package com.designpattern.templatepattern;

/**
 * @Classname AbstractExam
 * @Description 考试抽象类
 * @Date 2019/5/12 20:40
 * @Created by xiangty
 */
public abstract class AbstractExam {

    /**
     * 考试开始
     */
    abstract void examBegin();

    /**
     * 在考试期间
     */
    abstract void duringTheExamination();

    /**
     * 考试结束
     */
    abstract void examEnd();


    public final void exam(){
        examBegin();

        duringTheExamination();

        examEnd();
    }

}
